minus(0, y) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
zero(s(x)) → false
zero(0) → true
p(s(x)) → x
div(x, y) → quot(x, y, 0)
quot(x, y, z) → if(zero(x), x, y, plus(z, s(0)))
if(true, x, y, z) → p(z)
if(false, x, s(y), z) → quot(minus(x, s(y)), s(y), z)
↳ QTRS
↳ Overlay + Local Confluence
minus(0, y) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
zero(s(x)) → false
zero(0) → true
p(s(x)) → x
div(x, y) → quot(x, y, 0)
quot(x, y, z) → if(zero(x), x, y, plus(z, s(0)))
if(true, x, y, z) → p(z)
if(false, x, s(y), z) → quot(minus(x, s(y)), s(y), z)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
minus(0, y) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
zero(s(x)) → false
zero(0) → true
p(s(x)) → x
div(x, y) → quot(x, y, 0)
quot(x, y, z) → if(zero(x), x, y, plus(z, s(0)))
if(true, x, y, z) → p(z)
if(false, x, s(y), z) → quot(minus(x, s(y)), s(y), z)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
p(s(x0))
div(x0, x1)
quot(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, s(x1), x2)
IF(false, x, s(y), z) → QUOT(minus(x, s(y)), s(y), z)
IF(true, x, y, z) → P(z)
MINUS(s(x), s(y)) → MINUS(x, y)
QUOT(x, y, z) → PLUS(z, s(0))
QUOT(x, y, z) → ZERO(x)
PLUS(s(x), y) → PLUS(x, s(y))
IF(false, x, s(y), z) → MINUS(x, s(y))
DIV(x, y) → QUOT(x, y, 0)
QUOT(x, y, z) → IF(zero(x), x, y, plus(z, s(0)))
minus(0, y) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
zero(s(x)) → false
zero(0) → true
p(s(x)) → x
div(x, y) → quot(x, y, 0)
quot(x, y, z) → if(zero(x), x, y, plus(z, s(0)))
if(true, x, y, z) → p(z)
if(false, x, s(y), z) → quot(minus(x, s(y)), s(y), z)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
p(s(x0))
div(x0, x1)
quot(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
IF(false, x, s(y), z) → QUOT(minus(x, s(y)), s(y), z)
IF(true, x, y, z) → P(z)
MINUS(s(x), s(y)) → MINUS(x, y)
QUOT(x, y, z) → PLUS(z, s(0))
QUOT(x, y, z) → ZERO(x)
PLUS(s(x), y) → PLUS(x, s(y))
IF(false, x, s(y), z) → MINUS(x, s(y))
DIV(x, y) → QUOT(x, y, 0)
QUOT(x, y, z) → IF(zero(x), x, y, plus(z, s(0)))
minus(0, y) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
zero(s(x)) → false
zero(0) → true
p(s(x)) → x
div(x, y) → quot(x, y, 0)
quot(x, y, z) → if(zero(x), x, y, plus(z, s(0)))
if(true, x, y, z) → p(z)
if(false, x, s(y), z) → quot(minus(x, s(y)), s(y), z)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
p(s(x0))
div(x0, x1)
quot(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
PLUS(s(x), y) → PLUS(x, s(y))
minus(0, y) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
zero(s(x)) → false
zero(0) → true
p(s(x)) → x
div(x, y) → quot(x, y, 0)
quot(x, y, z) → if(zero(x), x, y, plus(z, s(0)))
if(true, x, y, z) → p(z)
if(false, x, s(y), z) → quot(minus(x, s(y)), s(y), z)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
p(s(x0))
div(x0, x1)
quot(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
PLUS(s(x), y) → PLUS(x, s(y))
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
p(s(x0))
div(x0, x1)
quot(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, s(x1), x2)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
p(s(x0))
div(x0, x1)
quot(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
PLUS(s(x), y) → PLUS(x, s(y))
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
MINUS(s(x), s(y)) → MINUS(x, y)
minus(0, y) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
zero(s(x)) → false
zero(0) → true
p(s(x)) → x
div(x, y) → quot(x, y, 0)
quot(x, y, z) → if(zero(x), x, y, plus(z, s(0)))
if(true, x, y, z) → p(z)
if(false, x, s(y), z) → quot(minus(x, s(y)), s(y), z)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
p(s(x0))
div(x0, x1)
quot(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
MINUS(s(x), s(y)) → MINUS(x, y)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
p(s(x0))
div(x0, x1)
quot(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, s(x1), x2)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
p(s(x0))
div(x0, x1)
quot(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
MINUS(s(x), s(y)) → MINUS(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
IF(false, x, s(y), z) → QUOT(minus(x, s(y)), s(y), z)
QUOT(x, y, z) → IF(zero(x), x, y, plus(z, s(0)))
minus(0, y) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
zero(s(x)) → false
zero(0) → true
p(s(x)) → x
div(x, y) → quot(x, y, 0)
quot(x, y, z) → if(zero(x), x, y, plus(z, s(0)))
if(true, x, y, z) → p(z)
if(false, x, s(y), z) → quot(minus(x, s(y)), s(y), z)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
p(s(x0))
div(x0, x1)
quot(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
IF(false, x, s(y), z) → QUOT(minus(x, s(y)), s(y), z)
QUOT(x, y, z) → IF(zero(x), x, y, plus(z, s(0)))
minus(0, y) → 0
minus(s(x), s(y)) → minus(x, y)
minus(x, 0) → x
zero(s(x)) → false
zero(0) → true
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
p(s(x0))
div(x0, x1)
quot(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, s(x1), x2)
p(s(x0))
div(x0, x1)
quot(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
IF(false, x, s(y), z) → QUOT(minus(x, s(y)), s(y), z)
QUOT(x, y, z) → IF(zero(x), x, y, plus(z, s(0)))
minus(0, y) → 0
minus(s(x), s(y)) → minus(x, y)
minus(x, 0) → x
zero(s(x)) → false
zero(0) → true
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
QUOT(0, y1, y2) → IF(true, 0, y1, plus(y2, s(0)))
QUOT(s(x0), y1, y2) → IF(false, s(x0), y1, plus(y2, s(0)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
IF(false, x, s(y), z) → QUOT(minus(x, s(y)), s(y), z)
QUOT(0, y1, y2) → IF(true, 0, y1, plus(y2, s(0)))
QUOT(s(x0), y1, y2) → IF(false, s(x0), y1, plus(y2, s(0)))
minus(0, y) → 0
minus(s(x), s(y)) → minus(x, y)
minus(x, 0) → x
zero(s(x)) → false
zero(0) → true
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
IF(false, x, s(y), z) → QUOT(minus(x, s(y)), s(y), z)
QUOT(s(x0), y1, y2) → IF(false, s(x0), y1, plus(y2, s(0)))
minus(0, y) → 0
minus(s(x), s(y)) → minus(x, y)
minus(x, 0) → x
zero(s(x)) → false
zero(0) → true
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
IF(false, x, s(y), z) → QUOT(minus(x, s(y)), s(y), z)
QUOT(s(x0), y1, y2) → IF(false, s(x0), y1, plus(y2, s(0)))
minus(0, y) → 0
minus(s(x), s(y)) → minus(x, y)
minus(x, 0) → x
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
zero(s(x0))
zero(0)
zero(s(x0))
zero(0)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
IF(false, x, s(y), z) → QUOT(minus(x, s(y)), s(y), z)
QUOT(s(x0), y1, y2) → IF(false, s(x0), y1, plus(y2, s(0)))
minus(0, y) → 0
minus(s(x), s(y)) → minus(x, y)
minus(x, 0) → x
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
IF(false, s(x0), s(x1), y2) → QUOT(minus(x0, x1), s(x1), y2)
IF(false, 0, s(y1), y2) → QUOT(0, s(y1), y2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
IF(false, s(x0), s(x1), y2) → QUOT(minus(x0, x1), s(x1), y2)
QUOT(s(x0), y1, y2) → IF(false, s(x0), y1, plus(y2, s(0)))
IF(false, 0, s(y1), y2) → QUOT(0, s(y1), y2)
minus(0, y) → 0
minus(s(x), s(y)) → minus(x, y)
minus(x, 0) → x
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ Instantiation
IF(false, s(x0), s(x1), y2) → QUOT(minus(x0, x1), s(x1), y2)
QUOT(s(x0), y1, y2) → IF(false, s(x0), y1, plus(y2, s(0)))
minus(0, y) → 0
minus(s(x), s(y)) → minus(x, y)
minus(x, 0) → x
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
QUOT(s(x0), s(z1), z2) → IF(false, s(x0), s(z1), plus(z2, s(0)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ Instantiation
↳ QDP
↳ QDPOrderProof
QUOT(s(x0), s(z1), z2) → IF(false, s(x0), s(z1), plus(z2, s(0)))
IF(false, s(x0), s(x1), y2) → QUOT(minus(x0, x1), s(x1), y2)
minus(0, y) → 0
minus(s(x), s(y)) → minus(x, y)
minus(x, 0) → x
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
IF(false, s(x0), s(x1), y2) → QUOT(minus(x0, x1), s(x1), y2)
Used ordering: Polynomial interpretation [25]:
QUOT(s(x0), s(z1), z2) → IF(false, s(x0), s(z1), plus(z2, s(0)))
POL(0) = 0
POL(IF(x1, x2, x3, x4)) = x2 + x3
POL(QUOT(x1, x2, x3)) = x1 + x2
POL(false) = 0
POL(minus(x1, x2)) = x1
POL(plus(x1, x2)) = 0
POL(s(x1)) = 1 + x1
minus(s(x), s(y)) → minus(x, y)
minus(0, y) → 0
minus(x, 0) → x
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ Instantiation
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
QUOT(s(x0), s(z1), z2) → IF(false, s(x0), s(z1), plus(z2, s(0)))
minus(0, y) → 0
minus(s(x), s(y)) → minus(x, y)
minus(x, 0) → x
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
plus(0, x0)
plus(s(x0), x1)